//
//  MyFutureModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/24.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "MyFutureModel.h"

@implementation MyFutureModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.createDate = dict[@"createDate"];
        self.endDate = dict[@"endDate"];
        self.orderNo = dict[@"orderNo"];
        self.productCount = [dict[@"productCount"] integerValue];
        self.productName = dict[@"productName"];
        self.status = [dict[@"status"] integerValue];
        self.thumbnailUrl = dict[@"thumbnailUrl"];
        self.totalPrice = [dict[@"totalPrice"] floatValue];
        
        self.isShowIWantWine = [dict[@"isShowIWantWine"] integerValue];
        self.isHalfStageCount = [dict[@"isHalfStageCount"] integerValue];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[MyFutureModel alloc]initWithDict:dict];
}

@end
